TaskObservableMethodBuilder.SetStateMachine(IAsyncStateMachine) method¶
Defined in
Type: TaskObservableMethodBuilderSystem.Runtime.CompilerServices
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public void SetStateMachine(IAsyncStateMachine stateMachine)
Summary: Associates the builder with the specified state machine.
Parameters
| Name | Type | Description |
|---|---|---|
stateMachine | IAsyncStateMachine | The state machine instance to associate with the builder. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | stateMachine is null. |
| System.InvalidOperationException | The state machine was previously set. |